<?php

declare (strict_types=1);
namespace App\Model;

use Hyperf\DbConnection\Model\Model;
/**
 * @property int $id 
 * @property string $mobile 账号
 * @property string $password 密码
 * @property string $real_name 实名
 * @property string $alias_name 别名
 * @property string $account_name 账号名；；例如：chenyang
 * @property string $company_name 主体公司
 * @property int $data_file_id 账号登录包附件id
 * @property int $status 状态 (1正常 2禁用)
 * @property int $login_time 登录时间
 * @property int $type 账号类型 1快手 2小红书  3企微
 * @property int $is_tasking 是否在任务中 0 否 1是
 * @property \Carbon\Carbon $created_at 创建时间
 * @property \Carbon\Carbon $updated_at 更新时间
 * @property string $sex 性别为字符串
 * @property string $marketUserId 运营者编号
 * @property string $full_name 姓名
 * @property string $avatar 头像路径
 * @property string $wechat 微信名称
 * @property int $is_login 登录状态 0否 1是
 * @property int $subject_id 账号所属主题
 * @property int $user_id 客服ID
 * @property int $restrict_status 账号封禁状态0初始 1永久 2暂时 3未知
 * @property int $restrict_start_time 封禁开始时间
 * @property int $restrict_end_time 封禁结束时间
 * @property string $restrict_content 封禁原因
 */
class WeworkAccount extends Model
{
    /**
     * The table associated with the model.
     *
     * @var string
     */
    protected $table = 'wework_account';
    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = ['id', 'mobile', 'password', 'real_name', 'alias_name', 'account_name', 'company_name', 'data_file_id', 'status', 'login_time', 'type', 'is_tasking', 'created_at', 'updated_at', 'sex', 'marketUserId', 'full_name', 'avatar', 'wechat', 'is_login', 'subject_id', 'user_id', 'restrict_status', 'restrict_start_time', 'restrict_end_time', 'restrict_content','project_id'];
    /**
     * The attributes that should be cast to native types.
     *
     * @var array
     */
    protected $casts = ['id' => 'integer', 'data_file_id' => 'integer', 'status' => 'integer', 'login_time' => 'integer', 'type' => 'integer', 'is_tasking' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime', 'is_login' => 'integer', 'subject_id' => 'integer', 'user_id' => 'integer', 'restrict_status' => 'integer', 'restrict_start_time' => 'integer', 'restrict_end_time' => 'integer', 'project_id' => 'integer'];
}